<%@ include file="/taglibs.jsp"%>
<%@ page contentType="text/html;charset=UTF-8" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<script src="${js}/jquery-1.6.min.js" type="text/javascript"></script>
<script src="${js}/jquery.validate.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" media="screen" href="${css}/screen.css" />
<title></title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.STYLE1 {font-size: 12px}
.STYLE4 {
	font-size: 12px;
	color: #1F4A65;
	font-weight: bold;
}

a:link {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;

}
a:visited {
	font-size: 12px;
	color: #06482a;
	text-decoration: none;
}
a:hover {
	font-size: 12px;
	color: #FF0000;
	text-decoration: underline;
}
a:active {
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.STYLE7 {font-size: 12}

-->
</style>

<script type="text/javascript">
	function btnSave()
	{
		$("#fm-edit").validate();
		var url = "${ctx}/admin/save";
		$('#fm-edit').attr('action',url);
		$('#fm-edit').submit();
	}
</script>
</head>
<body>
<form id="fm-edit" method="post" class="cmxform">
<table width="55%" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="30"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="30"><img src="${img}/tab_03.gif" width="15" height="30" /></td>
        <td width="1101" background="${img}/tab_05.gif"><img src="${img}/311.gif" width="16" height="16" /> <span class="STYLE4">${title}|新增</span></td>
        <td width="14"><img src="${img}/tab_07.gif" width="14" height="30" /></td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="9" background="${img}/tab_12.gif">&nbsp;</td>
        <td ><table width="99%" border="0" align="center" cellpadding="0" cellspacing="1"  border="1">
          <tr>
            <td width="30%" height="26" ><div align="center" class="STYLE2 STYLE1">姓名:</div></td>
            <td>
            <input id="id" name="id" type="hidden" value="${entity.id}" />
            <input name="userName" id="userName" type="text" value="${entity.userName}" class="required" maxLength="20"></td>
          </tr>
          <tr>
           <td width="30%" height="26" ><div align="center" class="STYLE2 STYLE1">状态:</div></td>
            <td>
            	<select name="status" class="required">
            		<option value="1">正常</option>
            		<option value="0">锁定</option>
            	</select>
            </td>
          </tr>
          <tr>
           <td width="30%" height="26" ><div align="center" class="STYLE2 STYLE1">类型:</div></td>
            <td>
            	<select name="type" class="required">
            		<option value="0">管理员</option>
            	</select>
            </td>
          </tr>
          <tr>
           <td width="30%" height="26" ><div align="center" class="STYLE2 STYLE1">手机:</div></td>
            <td><input name="telephone" id="telephone" type="text" value="${entity.telephone}"></td>
          </tr>
           <tr>
           <td width="30%" height="26" ><div align="center" class="STYLE2 STYLE1">备注:</div></td>
            <td><input name="info" id="info" type="text" value="${entity.info}"></td>
          </tr>
        </table></td>
        <td width="9" background="${img}/tab_16.gif">&nbsp;</td>
      </tr>
    </table></td>
  </tr>
  <tr>
    <td height="29"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="15" height="29"><img src="${img}/tab_20.gif" width="15" height="29" /></td>
        <td background="${img}/tab_21.gif"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="100%" valign="top" class="STYLE1"  align="center">
             <input type="button" name="save" value="保存" onclick="btnSave();">
             <input type="button" name="back" value="返回" onclick="javascript:history.go(-1);">
            </td>
          </tr>
        </table></td>
        <td width="14"><img src="${img}/tab_22.gif" width="14" height="29" /></td>
      </tr>
    </table></td>
  </tr>
</table>
</form>
</body>
</html>